function homeDir() {
  clear();
	sendMsg('HomeDir','listInfo');
}

function systemInfo() {
  clear();
	sendMsg('SystemInfo','listInfo');
}

function javaProps() {
  clear();
	sendMsg('JavaProps','listInfo');
}

function clear() {
  document.getElementById("res").innerHTML = "<em>Loading...</em>";
}

function listInfo(res) {
  var props = res.split(/\|/);
  var resP = document.getElementById("res");
  var pre = document.createElement("pre");
  resP.appendChild(pre);
  resP.innerHTML = "";
  for (var i=0; i<props.length; i++) {
    pre.innerHTML += props[i] + "\n";
  }
}
